<template>
    <button @click="emits('parentClick', '孙远杰')">确定</button>
</template>

<script setup lang="ts">
// const emits = defineEmits(["parentClick"])
const emits = defineEmits<{
    (e: 'parentClick', msg: string): void
}>()

</script> 